<div class="main iteration-table">
  <div class="main-header">
    <div class="pa-icon-div pull-left fs-14">
      <i class="iconfont icon-shouye fs-14 icon-vertical-top"></i>
      <span class="fs-vertical-middle">内业>责任落实>
      <span class="fs-theme-color">工程用表</span>
      </span>
    </div>
    <go-back></go-back>
  </div>
  <div class="main-content">
    <div class="search-info">
      <div class="container-header fs-16">
        <span>表格创建</span>
      </div>
    </div>
    <div class="fr"
      ng-hide="vm.type == 3">
      <button class="pa-btn pa-btn-longer" ng-click="vm.mobileDocument(vm)">资料归档</button>
      <button class="pa-btn pa-btn-longer" ng-click="vm.save()">保存</button>
    </div>
    <div class="ueditor-container">
      <div class="ueditor-brief">
        <!-- <label class="brief-label">关键词汇：</label>notes需要处理一下
        <span class="brief-span">{{this.previewInfo.notes}}</span> -->
      </div>
      <script id="container" name="content" type="text/plain">
        加载中...
      </script>
    </div>
  </div>
</div>

<!-- 资料归档 -->
<script type="text/ng-template" id="dataArchiving">
  <div class="pa-dialog">
    <div class="pa-dialog-header">
      <div class="title-txt">
        <span>资料归档</span>
      </div>
    </div>
    <div class="pa-dialog-content text-center document-dialog-file">
      <div class="pa-form-control pa-width-100">
        <label class="text-right"><b>*</b>资料分类：</label>
        <select class="form-control-select"
          ng-options="box.id as box.name for box in vm.boxType"
          ng-model="vm.document.type">
          <option value="{{box.id}}">{{box.name}}</option>
        </select>
      </div>
      <div class="pa-form-control pa-width-100">
        <label class="text-right"><b>*</b>资料编号：</label>
        <input type="text" class="form-control-input"
          ng-model="vm.document.documentNumber">
      </div>
      <div class="pa-form-control pa-width-100">
        <label class="text-right"><b>*</b>资料名称：</label>
        <input type="text" class="form-control-input"
          ng-model="vm.document.documentName">
      </div>
      <div class="pa-form-control pa-width-100">
        <label class="text-right"><b>*</b>编制时间：</label>
        <input type="text" class="pa-form-control-input date-picker"
          data-ng-datepicker
          ng-model="vm.document.compileTime">
      </div>
      <div class="pa-form-control pa-width-100">
        <label class="text-right">备注：</label>
        <textarea type="text" class="form-control-textarea"
          ng-model="vm.document.remark"></textarea>
      </div>
      <div class="pa-form-control pa-width-100">
        <label class="text-right">附件：</label>
        <div class="pa-operate-add fs-14 fs-theme-color dialog-file-btn">
          <a class="pa-btn-a"
            attachment-uploader
            data-url="/api/v1/common/uploadFile?folderName=document"
            data-target=".file-list"
            ng-model="vm.view.attachmentFiles">
            <span>上传附件</span>
          </a>
        </div>
        <div class="file-list" style="min-height: 30px;">
          <div class="upload-result">
            <div class="result-item" ng-repeat="file in vm.view.attachmentFiles">
              <span class="file-name">{{file.name}}</span>
              <span>{{file.humanSize}}</span>
              <i class="fa fa-times-circle file-remove-btn" ng-click="$removeFile(file);"></i>
              <span ng-if="file.success === false">上传失败</span>
              <progress ng-if="file.isUploading" class="progress-bar" value="{{file.loaded}}" max="{{file.size}}"></progress>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="pa-dialog-footer text-center">
      <a class="pa-btn" ng-click="vm.submitForm()">
        <span>确定</span>
      </a>
      <a class="pa-btn reset-btn" ng-click="closeThisDialog()">
        <span>取消</span>
      </a>
    </div>
  </div>
</script>